package com.tensquare.spit.dao;

import com.tensquare.spit.pojo.Spit;

import org.springframework.data.domain.Page;


import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

public interface SpitDao extends MongoRepository<Spit,String> {
    Page<Spit> findByParentid(String parentid, Pageable pageable);
  /*  //1.据parentId分页
    Page<Spit> findByParentId(String parentid, PageRequest of);*/
}
